<%layout("/beetl/common/layout.html"){%>
    <div class="panel panel-default">
        <div class="panel-heading">
          <h4 class="panel-title">新建菜单</h4>
        </div>
        <div class="panel-body panel-body-nopadding">
          <form class="form-horizontal form-bordered" method="post" action="../menu/add" id="menu">
            <div class="form-group">
              <label class="col-sm-3 control-label">菜单名称</label>
              <div class="col-sm-6">
                <input type="text" placeholder="菜单名称" class="form-control" name="menuName" />
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-3 control-label">上级菜单</label>
              <div class="col-sm-6">
                <input type="text" placeholder="上级菜单" class="form-control" name="menuPId" />
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-3 control-label">连接地址</label>
              <div class="col-sm-6">
                <input type="text" placeholder="连接地址" class="form-control" name="linkurl"/>
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-3 control-label">图标</label>
              <div class="col-sm-6">
                <input type="text" placeholder="图标" class="form-control" name="icon" />
              </div>
            </div>
            <div class="form-group">
              <label class="col-sm-3 control-label">类型</label>
              <div class="col-sm-6">
                <input type="text" placeholder="类型" class="form-control" name="type" />
              </div>
            </div>
            
          </form>
        </div>
        <div class="panel-footer">
             <div class="row">
                <div class="col-sm-6 col-sm-offset-3">
                  <button class="btn btn-primary" onclick="submitForm()">Submit</button>&nbsp;
                  <button class="btn btn-default">Cancel</button>
                </div>
             </div>
          </div>
      </div>
      <script type="text/javascript">
        function submitForm(){
            $("#menu").submit();
        }
      </script>
<%}%>
